package com.xunqi.mall.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @create: 2020-04-23 16:52
 **/
@Getter
@AllArgsConstructor
public enum ResponseEnum {

    ERROR(-1,"服务端错误"),

    SUCCESS(0,"成功"),

    PASSWORD_ERROR(1,"密码错误"),

    PARAM_ERROR(2, "参数错误"),

    USERNAME_OR_PASSWORD_ERROR(3,"用户名或者密码错误"),

    USER_NAME_EXIST(4,"用户名已存在"),

    EMAIL_EXIST(5,"邮箱已存在"),

    USER_NAME_NOTEXIST(6,"用户不存在"),

    NEED_LOGIN(7,"用户未登录，请先登录"),

    PRODUCT_NOTEXIST(8,"商品不存在"),

    PRODUCT_OFF_SALE_OR_DELETE(9,"商品下架或删除"),

    PRODUCT_NOT_STOCK(10,"商品数量不足"),

    CART_PRODUCT_NOT_EXIST(11,"购物车里无此商品"),

    SHIPPING_NOTEXIST(12,"没有这条收获地址"),

    DELETE_SHIPPING_ERROR(13,"刪除收获地址失败"),

    UPDATE_SHIPPING_ERROR(13,"更新收获地址失败"),

    SHIPPING_NOT_EXISTS(14,"收货地址不存在"),

    CART_SELECT_IS_EMPTY(15,"请选择商品后下单"),

    ORDER_LIST_EXISTS(16,"没有此订单"),

    ORDER_STATUS_ERROR(17,"订单状态有误")


    ;

    private Integer code;

    private String msg;

}
